#!/bin/bash
set -e

function info() {
echo Usage: `basename $0` 'number times'

cat <<info
info
exit 65
}

function error() {
echo `basename $0`': invalid option --'
echo Usage: `basename $0` 'number times'

cat <<error
error
exit 65
}

while getopts ":p:h" opts
do
case $opts in
p) out_prefix=$OPTARG;;
h) info;;
\?) error;;
esac
done
shift $(($OPTIND - 1))

test $# -lt 2 && info


for i in $(seq $2); do echo $1; done